﻿using JetBrains.Annotations;

namespace Abp.Resources.Embedded
{
    /// <summary>
    /// 提供基础设施，以使用嵌入到程序集中的任何类型的资源(文件)。
    /// 
    /// Provides infrastructure to use any type of resources (files) embedded into assemblies.
    /// </summary>
    public interface IEmbeddedResourceManager
    {
        /// <summary>
        /// 用于获取嵌入式资源文件。
        /// 如果没有找到资源，可以返回null
        /// 
        /// Used to get an embedded resource file.
        /// Can return null if resource is not found!
        /// </summary>
        /// <param name="fullResourcePath">Full path of the resource</param>
        /// <returns>The resource</returns>
        [CanBeNull]
        EmbeddedResourceItem GetResource([NotNull] string fullResourcePath);
    }
}